<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <link rel="stylesheet" href="../../fontawesome-5.15.4/css/all.min.css">
</head>
<style>
    body {
        margin: 0;
        padding: 0;
        background-image: linear-gradient(to right, skyblue, #fff);
    }
    a{
        text-decoration: none;
    }

    .menu {
        width: 230px;
        height: 420px;
        padding: 20px 0;
        background-color: rgba(0, 0, 0, .5);
        margin: 50px 0 0 50px;
        position: relative;
    }

    .item {
        line-height: 42px;
        font-size: 14px;
        padding: 0 10px 0 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        box-sizing: border-box;
        color: #fff;
    }
    .item:hover{
        background-color: #ff6700;
    }
    .item:hover .nav{
        display: grid;
    }
    .nav{
        min-width: 250px;
        height: 460px;
        background-color: #fff;
        border: 1px solid #fff;
        box-sizing: border-box;
        position: absolute;
        left: 230px;
        bottom: 0;
        display: grid;
        grid-template-rows: repeat(6,1fr);
        /*grid-template-columns: 250px;*/
        grid-auto-flow: column;
        grid-auto-columns: 250px;
        padding: 20px;
        display: none;
    }
    .nav a{
        /*border: 1px solid red;*/
        display: flex;
        align-items: center;
    }
    .nav a img{
        margin-right: 10px;
    }
    .nav a:hover{
        color: #ff6700;
    }
</style>
<body>
<div class="menu">
    <div class="item">
        手机 电话卡
        <i class="fas fa-angle-right"></i>
        <div class="nav">
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
        </div>
    </div>
    <div class="item">
        电视 盒子
        <i class="fas fa-angle-right"></i>
        <div class="nav">
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
            <a href="#">
                <img src="../xiaomi/img/mi15.webp" width="40" alt="">
                小米15
            </a>
        </div>
    </div>
    <div class="item">
        笔记本 平板
        <i class="fas fa-angle-right"></i>
    </div>
    <div class="item">
        家电 插线板
        <i class="fas fa-angle-right"></i>
    </div>
    <div class="item">
        出行 穿戴
        <i class="fas fa-angle-right"></i>
    </div>
    <div class="item">
        智能 路由器
        <i class="fas fa-angle-right"></i>
    </div>
    <div class="item">
        电源 配置
        <i class="fas fa-angle-right"></i>
    </div>
    <div class="item">
        健康 儿童
        <i class="fas fa-angle-right"></i>
    </div>
    <div class="item">
        耳机 音箱
        <i class="fas fa-angle-right"></i>
    </div>
    <div class="item">
        生活 箱包
        <i class="fas fa-angle-right"></i>
    </div>
</div>
</body>
</html>
